{% extends "admin/change_list.html" %}
{% load traffic_extras %}
{% load highcharts_extras %}

{% block extrastyle %}{{ block.super }}{{ advance_form.media.css }}{% endblock %}
{% block extrahead %}{{ block.super }}{{ advance_form.media.js }}{% endblock %}

{% block object-tools %}
    {{ block.super }}
      {% highcharts_for_result cl %}
      <p></p>
{% endblock %}

{% block search %}<br /><br />{% advanced_search_form cl %}{% endblock %}
{% block result_list %}{% endblock %}
{% block pagination %}{% endblock %}

{% block content %}
    {{ block.super }}
    <script type="text/javascript">
        (function ($) {
            $("form#changelist-search").append("<font color=red><span id='total'></span></font>")
            $("select#id_ports").change(function() {
              $("span#total").text("选中端口：" + $(this).val().length);
            });
        }(jQuery || django.jQuery));
    </script>
{% endblock %}
